<?php
    yii::app()->user->hasFlash('contact');
    echo Yii::app()->user->getFlash('contact');
//echo '<pre>';
//print_r($list_custom);
//die;
?>
<div class="col-lg-11">
    <div class="panel panel-default">
        <div class="panel-heading">
            Danh sách order
        </div>
        <!-- /.panel-heading -->
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>Tên Khách Hàng</th>
                        <th>Email</th>
                        <th>Điện thoại</th>
                        <th>Địa Chỉ</th>
                        <th>Giá trị Đơn hàng</th>
                        <th>Thoi gian</th>
                        <th>Khach hang xac nhan</th>
                        <th>Trang thai</th>
                        <th>Xem Chi tiết</th>
                        <th>Giao hang</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    foreach ($list_custom as $key=> $value){
                        ?>
                        <tr>
                            <td><?php echo $value->id?></td>
                            <td><?php echo $value->fullname?></td>
                            <td><?php echo $value->email?></td>
                            <td><?php echo $value->telephone?></td>
                            <td><?php echo $value->address?></td>
                            <td><?php echo $value->money?></td>
                            <td><?php echo $value->time?></td>
                            <td><?php $authentication=$value->Authentication; echo Order::model()->checkAuthentication($authentication); ?>
                            </td>
                            <td><?php
                                echo Order::model()->checkStatus($value->status);
                                ?>
                            </td>
                            <td><a href="<?php echo Yii::app()->createUrl('admin/order/preshoworder',array('id'=>$value->id))?>" class="btn btn-success btn-circle"><i class="glyphicon glyphicon-link"></i></a> </td>
                            <td><a href="<?php echo Yii::app()->createUrl('admin/order/shipping',array('id'=>$value->id))?>" class="btn btn-success btn-circle"><i class="glyphicon glyphicon-tag"></i></a> </td>

                        </tr>
                    <?php
                    }
                    ?>
                    </tbody>
                </table>
            </div>
            <!-- /.table-responsive -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>